<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改支出类合同')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-contractPay-edit" th:object="${contractPay}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">合同uid：</label>
                <div class="col-sm-8">
                    <input name="contractUid" th:field="*{contractUid}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">合同编号：</label>
                <div class="col-sm-8">
                    <input name="contractCode" th:field="*{contractCode}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">合同名称：</label>
                <div class="col-sm-8">
                    <input name="contractName" th:field="*{contractName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">供应商名称：</label>
                <div class="col-sm-8">
                    <textarea name="supplierNames" class="form-control">[[*{supplierNames}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">资金来源：</label>
                <div class="col-sm-8">
                    <input name="financialOrgName" th:field="*{financialOrgName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">合同归属：</label>
                <div class="col-sm-8">
                    <input name="lineNames" th:field="*{lineNames}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">费率：</label>
                <div class="col-sm-8">
                    <input name="contractRate" th:field="*{contractRate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">清单汇总金额：</label>
                <div class="col-sm-8">
                    <input name="contractListMoney" th:field="*{contractListMoney}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">合同总额：</label>
                <div class="col-sm-8">
                    <input name="contractTotalMoney" th:field="*{contractTotalMoney}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">申报时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="contractApplyDate" th:value="${#dates.format(contractPay.contractApplyDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">启用时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="contractEffectiveDate" th:value="${#dates.format(contractPay.contractEffectiveDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <textarea name="contractMemo" class="form-control">[[*{contractMemo}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否运营物资采购合同：</label>
                <div class="col-sm-8">
                    <input name="contractIsMaterial" th:field="*{contractIsMaterial}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">物资采购订单类型：</label>
                <div class="col-sm-8">
                    <select name="contractMaterialType" class="form-control m-b" th:with="type=${@dict.getType('contract_purchase_order_type')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{contractMaterialType}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">合同状态：</label>
                <div class="col-sm-8">
                    <select name="contractStatus" class="form-control m-b" th:with="type=${@dict.getType('contract_status')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{contractStatus}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">创建时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="createDate" th:value="${#dates.format(contractPay.createDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">更新时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="lastUpdateDate" th:value="${#dates.format(contractPay.lastUpdateDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">合同类型：</label>
                <div class="col-sm-8">
                    <select name="contractTypeName" class="form-control m-b" th:with="type=${@dict.getType('contract_type')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{contractTypeName}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">合同类别：</label>
                <div class="col-sm-8">
                    <select name="contractCategory" class="form-control m-b" th:with="type=${@dict.getType('contract_category')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{contractCategory}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">招采方式：</label>
                <div class="col-sm-8">
                    <select name="contractConferMode" class="form-control m-b" th:with="type=${@dict.getType('zc_mode')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{contractConferMode}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">招标概算(万元)：</label>
                <div class="col-sm-8">
                    <input name="budgetMoney" th:field="*{budgetMoney}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">控制价(万元)：</label>
                <div class="col-sm-8">
                    <input name="controlMoney" th:field="*{controlMoney}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">含预留金(万元)：</label>
                <div class="col-sm-8">
                    <input name="reserveFund" th:field="*{reserveFund}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">业主代表：</label>
                <div class="col-sm-8">
                    <input name="ydUserName" th:field="*{ydUserName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">业代部门：</label>
                <div class="col-sm-8">
                    <input name="ydOrgName" th:field="*{ydOrgName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">主办部门经办人：</label>
                <div class="col-sm-8">
                    <input name="hostUserName" th:field="*{hostUserName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">主办部门：</label>
                <div class="col-sm-8">
                    <input name="hostOrgName" th:field="*{hostOrgName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">合约管理经办人：</label>
                <div class="col-sm-8">
                    <input name="hybUserName" th:field="*{hybUserName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">合约管理部门：</label>
                <div class="col-sm-8">
                    <input name="hybOrgName" th:field="*{hybOrgName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">经办人电话：</label>
                <div class="col-sm-8">
                    <input name="contractHostUsertel" th:field="*{contractHostUsertel}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否增值税专用发票合同：</label>
                <div class="col-sm-8">
                    <input name="contractIsInvoice" th:field="*{contractIsInvoice}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否违约：</label>
                <div class="col-sm-8">
                    <input name="contractAttribute12" th:field="*{contractAttribute12}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">财务部是否已审核合同清单：</label>
                <div class="col-sm-8">
                    <input name="contractAttribute5" th:field="*{contractAttribute5}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">合同签订年份：</label>
                <div class="col-sm-8">
                    <input name="signYear" th:field="*{signYear}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "credit/contractPay";
        $("#form-contractPay-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-contractPay-edit').serialize());
            }
        }

        $("input[name='contractApplyDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='contractEffectiveDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='createDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='lastUpdateDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>